package 强化训练;

import java.util.HashMap;
import java.util.Scanner;

public class day30最难的问题 {
    public static void main(String[] args) {
        HashMap<Character,Character> table = new HashMap<>();
//        table.put(' ',' ');
        for (int i = 0; i < 21; i++) {
            char value = (char) ('A' + i);
            char key = (char) ('A' + i + 5);
            table.put(key,value);
        }
        for (int i = 21; i < 26; i++) {
            char value= (char) ('A' + i);
            char key = (char) ('A' + i - 21);
            table.put(key,value);
        }
//        table.forEach((k,v) ->{
//            System.out.println(k + " : " + v);
//        });
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()){
            String password = sc.nextLine();
            StringBuilder sb = new StringBuilder();
            for (char c : password.toCharArray()) {
                if (!table.containsKey(c)){
                    sb.append(c);
                }else {
                    sb.append(table.get(c));
                }
            }
            System.out.println(sb);
        }
    }
}
